package com.caseProcess.service.impl;

import com.caseProcess.entity.Role;
import com.caseProcess.mapper.RoleDao;
import com.caseProcess.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Resource
    RoleDao roleDao;

    @Override
    public int insert(Role role) {
      return roleDao.insert(role);
    }

    @Override
    public int update(Role role) {
        return roleDao.update(role);
    }

    @Override
    public int delete(Role role) {
        return roleDao.delete(role);
    }

    @Override
    public List<Role> selectRole(Role role) {
        return roleDao.selectRole(role);
    }

    @Override
    public Role isExist(String roleName) {
        return roleDao.isExist(roleName);
    }


}
